package com.yg.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yg.entity.readAndWriteTemplates.TechnologyCompetitionTemplate;
import com.yg.entity.singleEntity.TechnologyCompetition;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 对应sheet13，此表是教师指导大学生参加科技竞赛表 Mapper 接口
 * </p>
 *
 * @author YingGu
 * @since 2020-11-04
 */
public interface TechnologyCompetitionMapper extends BaseMapper<TechnologyCompetition> {

    /**
     * 根据两个表的id查询所有数据并返回给模板类
     * @return
     */
    List<TechnologyCompetitionTemplate> selectAllForTemplate();

    List<TechnologyCompetitionTemplate> selectForPage(@Param(value = "currentPage") int currentPage,@Param(value = "size") int size);
}
